package com.wh.accesscontrol.service.lmpl;

import com.wh.accesscontrol.dao.UserMapper;
import com.wh.accesscontrol.entity.User;
import com.wh.accesscontrol.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("UserServicelmpl")
public class UserServicelmpl implements UserService {
@Autowired
private UserMapper userMapper;
    /**
     * 找到的用户Id
     *
     * @param userid   用户标识
     * @param password 密码
     * @return {@link User}
     */

    @Override
    public User findByUserId(Integer userid) {
        return userMapper.findByuserid(userid);
    }
}

